<form action="%%[base_url]%%/dataops.php" name="ea" method="post">

<h2 class="hdt">Add New Case Notes</h2>

<input type="hidden" name="act_id" value="%%[act_id]%%"/>
<input type="hidden" name="screen" value="act"/>
<input type="hidden" name="act_url" value="%%[act_url]%%"/>
<input type="hidden" name="close_act" value="1"/>
<input type="hidden" name="act_type" value="N"/>
<input type="hidden" name="completed" value="1"/>
<input type="hidden" name="case_id" value="%%[case_id]%%"/>
<input type="hidden" name="action" value="%%[action_name]%%"/>
<input type="hidden" name="act_time" value="%%[act_time]%%"/>

<table summary="" class="nopad">
	<tr valign="top"> 
		<td colspan="3">
			<p>
			Summary (public):<br/>
			<textarea name="summary" rows="1" cols="48" tabindex="1" style="height: 1.5em;">%%[summary]%%</textarea><br/>
			Notes (private):<br/>
			<textarea name="notes" rows="10" cols="48" tabindex="1">%%[notes]%%</textarea><br/>
			<img src="%%[base_url]%%/images/point.gif"> <a href="javascript:toggleBox('demodiv',1);">Text Highlighting</a>
			%%[textFormat]%%
		</td>
		<td rowspan="2">
			<p class="side">
			Hours:<br/>
			<input type=text name="hours" value="%%[hours]%%" maxlength="6" tabindex="1"/><br/>
			Date:<br/>
			<input type="text" name="act_date" value="%%[act_date]%%" maxlength="10" tabindex="1"/><br/>
			Type of Activity:<br/>
			%%[category,category]%%<br/>
			Funding Source 1:<br/>
			%%[funding,funding]%%<br/>
			Funding Source 2:<br/>
			%%[funding1,funding]%%<br/>
			Funding Source 3:<br/>
			%%[funding2,funding]%%<br/>
			Funding Source 4:<br/>
			%%[funding3,funding]%%<br/>
			Staff:<br/>
			%%[user_id menu]%%<br/>
			%%[paitime,yes_no,checkbox]%% PAI Time?<br />
    			%%[senior_cc,yes_no,checkbox]%% Client Contact?<br />
			%%[senior_ce,yes_no,checkbox]%% Client Education?<br />
			</p>
	    </td>
	</tr>
</table>

<p>
	<input type="submit" value="Save" tabindex="1" class="save" accesskey="s"/>
</p>
</form>

<script language="JavaScript" type="text/javascript"><!--
document.ea.summary.focus();
//--></script>

%%[begin:notes_header]%%
<h2>Case Notes for %%[number]%%</h2>
%%[end:notes_header]%%
%%[begin:notes_order]%%
<p>
	<img src="%%[base_url]%%/images/point.gif" alt="Arrow"/>&nbsp;
	<a href="%%[base_url]%%/case.php?case_id=%%[case_id]%%&screen=act&order=%%[next_order]%%" class="small">Reverse Order of Case Notes</a>
</p>
%%[end:notes_order]%%
%%[begin:flex_row]%%
<p>
	<strong>%%[type_desc]%%</strong>&nbsp;-&nbsp;%%[user_id text source=act_user_id]%%%%[pba_id text source=act_pba_id]%%<br/>
	<span class="small">
	%%[act_timestamp]%% &nbsp; | &nbsp; %%[hours]%% hours &nbsp; | &nbsp; 
	<a href="%%[base_url]%%/activity.php?act_id=%%[act_id]%%&screen=edit&case_id=%%[case_id]%%" class="small">Edit this record</a>
	</span>
<p>
<blockquote>
	<span style="font-family: georgia, times, serif; font-size: 14px;">
	%%[summary]%%%%[notes]%%
	</span>
</blockquote>
<div style="border-top: 1px solid #999999;"></div>
<br/>
%%[end:flex_row]%%
%%[begin:notes_footer]%%
<p>
	Total of <strong>%%[hours_worked]%%</strong> %%[hours_label]%% completed on this case.
</p>
%%[end:notes_footer]%%


<script type="text/javascript">
<!--
function toggleBox(szDivID, iState) // 1 visible, 0 hidden
{
   var obj = document.layers ? document.layers[szDivID] :
   document.getElementById ?  document.getElementById(szDivID).style :
   document.all[szDivID].style;
   obj.visibility = document.layers ? (iState ? "show" : "hide") :
   (iState ? "visible" : "hidden");
}
// -->
</script>



<script language="JavaScript" type="text/javascript"><!--

function no_op()
{
	return;
}

function AddTag(tag) 
{
	document.ea.notes.value=document.ea.notes.value+tag;
	document.ea.notes.focus();
	return;
}

function set_fund(val)
{
	if (document.ea.funding.value == "")
	{
		document.ea.funding.value = val;	
	}
	
	else
	if (document.ea.funding.value != val)
	{
		if (confirm('Would you like to update the funding code to match this new case?'))
		{
			document.ea.funding.value = val;
		}
	}
	
	return;
}

//--></script>
